
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>仔仔的音乐盒</title>
<link rel="stylesheet" type="text/css" href="css/main.css">

</head>
<body>
<div class='jAudio--player'>

<audio></audio>

<div class='jAudio--ui'>

  <div class='jAudio--thumb'></div>

  <div class='jAudio--status-bar'>

	<div class='jAudio--details'></div>
	<div class='jAudio--volume-bar'></div>

	<div class='jAudio--progress-bar'>
	  <div class='jAudio--progress-bar-wrapper'>
		<div class='jAudio--progress-bar-played'>
		  <span class='jAudio--progress-bar-pointer'></span>
		</div>
	  </div>
	</div>

	<div class='jAudio--time'>
	  <span class='jAudio--time-elapsed'>00:00</span>
	  <span class='jAudio--time-total'>00:00</span>
	</div>

  </div>

</div>


<div class='jAudio--playlist'>
</div>

<div class='jAudio--controls'>
  <ul>
	<li><button class='btn' data-action='prev' id='btn-prev'><span></span></button></li>
	<li><button class='btn' data-action='play' id='btn-play'><span></span></button></li>
	<li><button class='btn' data-action='next' id='btn-next'><span></span></button></li>
  </ul>
</div>

</div>

<script src='js/jquery-2.1.4.min.js'></script>
<script src='js/jaudio.js'></script>
<script>
var t = {
	playlist:[
		{
		  file: "../music/mp3/w1.mp3",
		  thumb: "thumbs/01.jpg",
		  trackName: "我把伤心写成歌",
		  trackArtist: "仔仔",
		  trackAlbum: "仔仔专辑",
		},
		{
		  file: "../music/mp3/w2.mp3",
		  thumb: "thumbs/02.jpg",
		  trackName: "另一个你",
		  trackArtist: "绝情的吉他",
		  trackAlbum: "绝情的吉他",
		},
		{
		  file: "../music/mp3/andy1.mp3",
		  thumb: "thumbs/03.jpg",
		  trackName: "Fade",
		  trackArtist: "Alan Walker",
		  trackAlbum: "Single",
		}
		

	],
	autoPlay:false
}

$(".jAudio--player").jAudio(t);
</script>

</body>
</html>
